package com.itheima.edu.javagaoji.thread;

public class MyThread extends Thread{

    public MyThread() {
    }

    public MyThread(String name) {
        super(name);
    }

    @Override
    public void run() {

        for (int i = 0; i < 100; i++) {
//            Thread.sleep(Long.parseLong("1000"));
            System.out.println(this.getName() +"-----" + i);




        }

    }
}
